#include "stm32f1xx_hal.h"

#define u8 uint8_t
#define u16 uint16_t
#define u32 uint32_t

#define PCA_Addr 0x80
#define PCA_Model 0x00
#define LED0_ON_L 0x06
#define LED0_ON_H 0x07
#define LED0_OFF_L 0x08
#define LED0_OFF_H 0x09
#define PCA_Pre 0xFE

void PCA9685_Init_0(float hz,u8 angle);

void PCA9685_Write_0(u8 addr,u8 data);

u8 PCA9685_Read_0(u8 addr);

void PCA9685_setPWM_0(u8 num,u32 on,u32 off);

void PCA9685_setFreq_0(float freq);

void setAngle_0(u8 num,u8 angle);

